﻿
using System.Collections.Generic;
using UnityEngine;

public abstract class Detection:MonoBehaviour
{
    /// <summary>
    /// 检测的标签
    /// </summary>
    public string[] targetTags;

    /// <summary>
    /// 检测到物体列表
    /// </summary>
    public List<GameObject> wasHitList=new List<GameObject>();

    public void ClearWasHit()=>wasHitList.Clear();

    public abstract List<Collider> GetDetection();
}

